package com.guigu.tms.commons.aggregation.feign;

import com.github.pagehelper.PageInfo;
import com.guigu.tms.commons.aggregation.entity.TransportOrder;
import com.guigu.tms.commons.aggregation.entity.TransportOrderQuery;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;

import java.util.List;

@FeignClient(value = "tms-aggregation",path = "/aggregation/transportOrder",contextId = "transportOrder")
public interface TransportOrderFeignClient {
    @PostMapping("getTransportOrderByOrderIds")
    List<TransportOrder> getTransportOrderByOrderIds(@RequestBody List<String> orderIds);
    @PostMapping("getTransportOrders/{num}/{size}")
    PageInfo<TransportOrder> getTransportOrders(@RequestBody TransportOrderQuery transportOrderQuery, @PathVariable("num") Integer num, @PathVariable("size")Integer size);
}
